package concurrency;

import java.util.Scanner;

public class InputAndOutput {
    public static char chin, chout;

    public static void main(String[] args) {
        MyThread thread1 = new MyThread();
        MyThread thread2 = new MyThread();
        thread1.start();
        thread2.start();
    }
}

class MyThread extends Thread {

    @Override
    public void run() {
        Scanner scanner = new Scanner(System.in);
        InputAndOutput.chin = scanner.nextLine().charAt(0);
        InputAndOutput.chout = InputAndOutput.chin;
        System.out.println(InputAndOutput.chout);
    }
}

